<?php


namespace App\Libraries\CustomsBills\Contracts;


use Illuminate\Support\Carbon;
use Illuminate\Support\Str;

abstract class Message
{
    /**
     * @return string
     * @author luffyzhao@vip.126.com
     */
    protected function getUUid()
    {
        return Str::uuid()->toString();
    }

    /**
     * @return string
     * @author luffyzhao@vip.126.com
     */
    protected function getAppTime(): string
    {
        return Carbon::now()->format('YmdHis');
    }

    /**
     * @param array $array
     * @return string
     * @author luffyzhao@vip.126.com
     */
    protected function getImplode(array $array)
    {
        return implode('', $array);
    }
}